<?php
include_once 'protocol_includes.php';

class Stub extends subapplication
{
    private $cmd;
    public static $PROTOCOL = "Stub";

    public static function create(command $cmd)
    {
        $N = new Stub($cmd);
        return $N;
    }

    public function __construct(command $cmd)
    {
        $this->cmd  = $cmd;
    }

    public function execute()
    {
        $this->UpdateResult('Stub command ... ' . $this->cmd->__toString());
    }

    public function  requiresAuthentication() {
        return false;
    }
    
    public function result()
    {
        $this->cmd->GetResult();
    }

    public function UpdateResult($str)
    {
        $this->cmd->SetResult($str);
    }

    /*
     * check to see if command is a STUB
     */
    public static function IsThisClass(command $cmd)
    {
        return true;
    }


}

?>
